//
//  GHUtils.h
//  GodHorses
//
//  Created by coder on 2017/11/14.
//  Copyright © 2017年 stoneobs@icloud.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "THGoodDetailViewController.h"
#import "THSearchViewController.h"
#import "THTieZiModel.h"
#import "BFShOrderHomeViewController.h"
#import "THBannerModel.h"
@interface TMUtils: NSObject
//是否是iphonex系列留海屏幕
+ (BOOL)stoneobs_fun_isIphoneX;
//网络波动
+ (void)stoneobs_fun_netWorkMonitorinCanUseWithHandle:(void (^)(void))handle;
//导航栏底部的Y值
+ (CGFloat)stoneobs_fun_get_navgationBarBootom;
//tabbar初始位置的Y值
+ (CGFloat)stoneobs_fun_get_tabBarTop;
+ (UITextField*)stoneobs_fun_textFiledWithLeftTitle:(NSString*)leftTitle placeHolader:(NSString*)placeHolader  rightView:(UIView*)rightView;
+ (STButton*)stoneobs_fun_titleThemeButtonViewWithTitle:(NSString*)title showRightGo:(BOOL)showRightGo handle:(void(^)(void))handle;
//底部按钮
+ (STButton*)stoneobs_fun_titleThemeBottomButtonWithTile:(NSString*)title  actionHandle:(void(^)(UIButton * sender))actionHandle;
//生成模拟网络随机数组
+ (void)stoneobs_fun_debugSimulationNetWorkWithHadle:(void (^)(NSInteger, NSMutableArray *))handle;
//简易请求
+ (void)stoneobs_fun_sendNoJsonRequestWithUrl:(NSString*)url
                          params:(NSDictionary*)params
                          isPost:(BOOL)isPost
                          handle:(void(^)(BOOL success,NSString * response))handle;
//随即一个数字，出现偶数和奇数
+ (void)stoneobs_fun_randNumberWithOuHandle:(void(^)(void))oushuHandle jiHandle:(void(^)(void))jiHandle;

//UI
+ (UIView*)stoneobs_fun_headerViewWithTitle:(NSString*)title;

+ (STButton*)stoneobs_fun_titleButtonViewWithTile:(NSString*)title
                         showRightGo:(BOOL)showRightGo
                              handle:(void(^)(void))handle;

+ (void)stoneobs_fun_makeViewToThemeGrdualColor:(UIView*)view;
+ (STTools_BaseViewController*)stoneobs_fun_get_currentTopController;
+ (STTools_BaseViewController*)stoneobs_fun_get_currentTopController_lastControllerIfNav;
+ (BFShOrderHomeViewController*)shorderHomeControllerIfExit;
//切换地址
+ (NSString*)stoneobs_fun_get_serverUrlHeader;
+ (NSString*)stoneobs_fun_get_rc_app_key;

+ (void)goto_good_detail_witdh_id:(NSString*)good_id;
+ (void)goto_user_info_witdh_id:(NSString*)user_id;
+ (void)goto_search_controller;
//去帖子详情
+ (void)goto_tiezi_detail:(THTieZiModel*)model dataSouce:(NSArray*)dataSouce;
+ (void)goto_share_witdh_url:(NSString*)url;

//自动处理banner
+ (void)auto_deal_banner:(THBannerModel*)model;
@end
